package com.example.easypan.exception;

import lombok.Getter;

/**
 * 功能：
 * 作者：cyan
 * 日期：2024/12/30 下午1:40
 */
@Getter
public class ServiceException extends RuntimeException {

    private String code;

    public ServiceException(String msg) {
        super(msg);
        //死的，登录里面的service写好了
        this.code="500";
    }

    public ServiceException(String code, String msg) {
        super(msg);
        this.code = code;
    }




}